-- GENERATED SPELL FOR [Ritual Channeler] --


function spell0_27281(pUnit, Event) --@Paralyze,n/a--
pUnit:FullCastSpellOnTarget(48278,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27281', 663, 1)
end

function spell1_27281(pUnit, Event) --@Shadows in the Dark,Self--
pUnit:FullCastSpellOnTarget(59407,pUnit)
pUnit:RegisterEvent('Sorts_27281', 0, 1)
end

function Sorts_27281(pUnit, Event)
local choix_sorts_27281 = math.random(0, 1)
if choix_sorts_27281 == 0 then
pUnit:RegisterEvent('spell0_27281', 1, 1)
end
if choix_sorts_27281 == 1 then
pUnit:RegisterEvent('spell1_27281', 1, 1)
end
end

function mob27281_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27281', math.random(1500, 3000), 1)
end

function mob27281_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27281_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27281_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27281, 1, 'mob27281_Action')
RegisterUnitEvent(27281, 2, 'mob27281_Leave')
RegisterUnitEvent(27281, 3, 'mob27281_Kill')
RegisterUnitEvent(27281, 4, 'mob27281_Die')
